home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 134 (1991-10)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 134 (1991-10)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / RxSlides / RxSlides.h < prev    next >
C/C++ Source or Header  |  1990-03-08  |  2KB  |  58 lines

  1. /*
  2.  *  RxSlides.h -- header file for RxSlides
  3.  *
  4.  *  Oct. 27, 1988  Dean Bandes from Dissolve by Lee M. Robertson
  5.  */
  6.  
  7. #define STS_OK           0
  8. #define STS_UNKNOWN_CMD   1    /* Unknown command */
  9. #define STS_NOT_ILBM      5    /* Not an ILBM file */
  10. #define STS_NOT_PICTURE   6    /* Not a picture file */
  11. #define STS_NO_PIC_OPEN   7    /* Unable to open picture file */
  12. #define STS_BAD_PSIZE      8     /* Invalid picture size */
  13. #define STS_BAD_BMHD      9    /* Missing bit map header */
  14. #define STS_BAD_BMHDSIZE 10    /* Incorrect BMHD size */
  15. #define STS_NO_BODY_BUF     11    /* No memory for body buffer */
  16. #define STS_NO_DECODE     12    /* Invalid decode flag */
  17. #define STS_READ_ERROR     13    /* Read error */
  18. #define STS_BAD_ALLOC     14    /* Insufficient memory */
  19. #define STS_NO_WINDOW     15    /* Unable to open window */
  20. #define STS_NO_SCREEN     16    /* Unable to open screen */
  21. #define STS_CLEANING_UP  21    /* Program is exiting */
  22. #define STS_BAD_ARGS     22    /* Invalid arguments */
  23. #define STS_BAD_LIBS     23    /* Unable to open libraries */
  24. #define STS_NO_PORT     24    /* Unable to open message port */
  25.  
  26. #define DM_ZAP     0
  27. #define DM_TWIPE 1
  28. #define DM_BWIPE 2
  29. #define DM_LWIPE 3
  30. #define DM_RWIPE 4
  31. #define DM_VBLIN 5
  32. #define DM_DISSO 6
  33.  
  34. #define MAX_TRANSITION    DM_DISSO
  35.  
  36. #define CMSIZE 3*32            /* # of bytes in color register map */
  37.  
  38. /*---------------------------------------------------------------------------
  39.  * following are definitions from the IFF specification
  40.  *-------------------------------------------------------------------------*/
  41. struct BitMapHeader
  42. {
  43.     UWORD w, h;
  44.     WORD  x, y;
  45.     UBYTE nPlanes;
  46.     UBYTE masking;
  47.     UBYTE compression;
  48.     UBYTE pad1;
  49.     UWORD transparentColor;
  50.     UBYTE xAspect, yAspect;
  51.     WORD  pageWidth, pageHeight;
  52. };
  53.  
  54. struct ColorRegister
  55. {
  56.     UBYTE red, green, blue;
  57. };
  58.